<?php if ('on' === $configuration->modePreview && $form->isBound() && $form->isValid()): ?>
  <div class="preview">
    <p class="info">Preview Mode - Don't forget to save!</p>
    <h1 class="title"><?php echo $form->getObject() ?></h1>
    <?php echo $form->getObject()->get('content_html', ESC_RAW) ?>
  </div>
<?php endif ?>